module.exports = {
    get(selector) {
        let nodeList = document.querySelectorAll(selector);
        if (nodeList.length === 0) {
            return console.warn(`${selector}没有获取到节点`);
        }
        if (nodeList.length === 1) {
            return nodeList[0];
        }
        if (nodeList.length > 1) {
            return nodeList;
        }
    }
}